using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NodeBasedSkillEditor.Model.Node
{
    [Node(Category = DAGHelper.CateName_MathLogic, Name = "Bitwise AndOr &|")]
    public class Node_Bitwise_AndOr : NodeData
    {
        [Port(IOType = EPortIOType.Input)]
        public EnumPort<EAndOr> Mode = new EnumPort<EAndOr>();

        [Port(IOType = EPortIOType.Input)]
        public PortGroup Values = new PortGroup(typeof(IntegerPort));

        [Port(IOType = EPortIOType.Output)]
        public IntegerPort Result = new IntegerPort();

        public override RT_Node BuildRuntimeNode(RT_DAG parentDAG)
        {
            return new RT.Node_Bitwise_AndOr_RT(this, parentDAG);
        }
    }
}
